package com.dyna.core.aop.aspect;

import com.dyna.core.aop.annotation.ApiLog;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @author Admin
 */
@Slf4j
@Aspect
@Component
public class ApiLogAspect {


    @Before("@annotation(apiLog)")
    public void test(JoinPoint point, ApiLog apiLog) {
        log.info("测试api切面日志");
    }

}
